import request from '@/utils/request'

// 查询检验仪器列表
export function listQcinspectinstrument(query) {
  return request({
    url: '/qc/qcinspectinstrument/list',
    method: 'get',
    params: query
  })
}

// 查询检验仪器详细
export function getQcinspectinstrument(id) {
  return request({
    url: '/qc/qcinspectinstrument/' + id,
    method: 'get'
  })
}

// 新增检验仪器
export function addQcinspectinstrument(data) {
  return request({
    url: '/qc/qcinspectinstrument',
    method: 'post',
    data: data
  })
}

// 修改检验仪器
export function updateQcinspectinstrument(data) {
  return request({
    url: '/qc/qcinspectinstrument',
    method: 'put',
    data: data
  })
}

// 删除检验仪器
export function delQcinspectinstrument(id) {
  return request({
    url: '/qc/qcinspectinstrument/' + id,
    method: 'delete'
  })
}
